<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入layui的css文件 -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 引入自己的css文件 -->
    <link rel="stylesheet" href="/assets/css/login.css">
    <title>大事件 注册/登录页面</title>
</head>

<body>
    <!-- 1. Logo图片 -->
    <div class="layui-main">
        <img src="/assets/images/logo.png" alt="">
    </div>

    <!-- 2. 登录注册区域 -->
    <div class="loginAndRegBox">
        <div class="title"></div>
        <!-- 登录模块 -->
        <div id="loginBox">
            <form class="layui-form" action="" id="Loginform">
                <div class="layui-form-item">
                    <i class="layui-icon-username layui-icon"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon-password layui-icon"></i>
                    <input type="password" name="password" required lay-verify="required|pass" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <button class="layui-btn layui-btn-normal layui-btn-fluid denglu" lay-submit
                    lay-filter="formDemo">登录</button>
            </form>
            <div id="loginBox-a" class="btn">
                <a href="javascript:;">去注册账号</a>
            </div>
        </div>

        <!-- 注册模块 -->
        <div id="regBox" style="display: none;">
            <form class="layui-form" action="" id="Regform">
                <div class="layui-form-item">
                    <i class="layui-icon-username layui-icon"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名"
                        autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon-password layui-icon"></i>
                    <input type="password" id="userpassword" name="password" required lay-verify="required|pass"
                        placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <i class="layui-icon-password layui-icon"></i>
                    <input type="password" name="repassword" required lay-verify="required|repassword"
                        placeholder="请再次输入密码" autocomplete="off" class="layui-input">
                </div>
                <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit lay-filter="formDemo">注册</button>
            </form>
            <div id="loginBox-a" class="loginBox-a-js btn">
                <a href="javascript:;">去登录账号</a>
            </div>
        </div>

        <!-- 导入layui的js文件 -->
        <script src="/assets/lib/layui/layui.all.js"></script>
        <!-- 引入axios.js文件 -->
        <script src="/assets/lib/axios.js"></script>
        <!-- 引入common.js文件,用于设置axios请求的默认路径 -->
        <script src="/assets/js/common.js"></script>
        <script src="/assets/lib/jquery.js"></script>
        <!-- 引入自己的js文件 -->
        <script src="/assets/js/login.js"></script>

</body>

</html>